FacebookTwitterLinkedInSnippets to delete all files in a directory using C# string[] folder= Directory.GetFiles(@"c:\myFolder\"); foreach (string _file in folder) { File.Delete(_file); } Happy Coding!!! More C# Snippets Create a new Thread Delegate using C# Copy data from DataView to DataTable using C# A function to Shuffle Array and List using C#